package com.community.demo.model;

import java.io.Serializable;
import java.util.Date;

import org.primefaces.model.ScheduleEvent;

import com.community.demo.beans.EntitiBean;

public class Reserva extends EntitiBean implements ScheduleEvent , Serializable {
	
	private String title;
	private boolean allDay;
	private Zona zona;
	private Persona persona;
	private Date startDate;
	private Date endDate;
	private String detalle;
	private boolean editable;
	private Integer tiempoReserva; 
	

	/**
	 * Entidad manejadora de las reservas de recursos en el condominio.
	 */
	public Reserva reserva;
	
	private static final long serialVersionUID = -8690225280594544711L;

	@Override
	public Object getData() {
		return new Date();
	}

	@Override
	public Date getEndDate() {
		return endDate;
	}
	
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Override
	public Date getStartDate() {
		return startDate;
	}
	
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@Override
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public boolean isAllDay() {
		return allDay;
	}

	public void setAllDay(boolean allDay) {
		this.allDay = allDay;
	}

	@Override
	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean editable) {
		this.editable = editable;
	}

	public Zona getZona() {
		return zona;
	}

	public void setZona(Zona zona) {
		this.zona = zona;
	}

	public Persona getPersona() {
		return persona;
	}

	public void setPersona(Persona persona) {
		this.persona = persona;
	}

	public String getDetalle() {
		return detalle;
	}

	public void setDetalle(String detalle) {
		this.detalle = detalle;
	}

	public Reserva getReserva() {
		return reserva;
	}

	public void setReserva(Reserva reserva) {
		this.reserva = reserva;
	}

	@Override
	public String getStyleClass() {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer getTiempoReserva() {
		return tiempoReserva;
	}

	public void setTiempoReserva(Integer tiempoReserva) {
		this.tiempoReserva = tiempoReserva;
	}

}
